package com.wujilee.wujileenetty.demos.web.bioService;

import java.nio.IntBuffer;

/**
 * @author liwuji
 * @date 2024/7/29
 * @desc
 **/
public class BasicBuffer {
    public static void main(String[] args) {
        IntBuffer allocate = IntBuffer.allocate(5);
        allocate.put(1);
        allocate.put(2);
        allocate.put(3);
        allocate.put(4);
        allocate.put(5);
        allocate.flip();
        while (allocate.hasRemaining()){
            System.out.println(allocate.get());
        }
    }
}
